package cn.school.studyManage.service.impl;

import cn.school.studyManage.dao.StudentBehaviorCfgItemDao;
import cn.school.studyManage.entity.StudentBehaviorCfgItem;
import cn.school.studyManage.service.StudentBehaviorCfgItemService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class StudentBehaviorCfgItemServiceImpl implements StudentBehaviorCfgItemService {

    @Autowired
    StudentBehaviorCfgItemDao cfgItemDao;

    @Override
    public List<StudentBehaviorCfgItem> findCfgItemByCfgId(Long cfgId) {
        QueryWrapper<StudentBehaviorCfgItem> wrapper = new QueryWrapper<>();
        wrapper.eq("cfg_id",cfgId);
        return cfgItemDao.selectList(wrapper);
    }
}
